"""miniwanmonitor URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from account.views import *
from monitor.views import *

urlpatterns = [

    url(r'^account/', include('account.urls')),


    url(r'^admin/', include(admin.site.urls)),
    url(r'^$',index,name='index'),

    url(r'^server/list/$',server_lists,name='server_lists'),
    url(r'^server/add/$',server_add,name='server_add'),
    url(r'^server/del/(\d+)$',server_del,name='server_del'),
    url(r'^server/edit/(\d+)$',server_edit,name='server_edit'),
    # url(r'^server/server_detail/(\d+)$',server_detail,name='server_detail'),
    url(r'^idc/list/$',idc_list,name='idc_list'),
    url(r'^idc/add/$',idc_add,name='idc_add'),
    url(r'^idc/del/(\d+)$',idc_del,name='idc_del'),
    url(r'^idc/edit/(\d+)$',idc_edit,name='idc_edit'),
    # url(r'^idc/other/(\d+)$',idc_other,name='idc_other'),
    #
    url(r'^zone/list/$',zone_list,name='zone_list'),
    url(r'^zone/add/$',zone_add,name='zone_add'),
    url(r'^zone/del/(\d+)$',zone_del,name='zone_del'),
    url(r'^zone/edit/(\d+)$',zone_edit,name='zone_edit'),
    # url(r'^display/passwd/(\d+)$',display_pass,name='display_pass'),
    #
    url(r'Business/list/$',Business_list,name='Business_list'),
    url(r'Business/add/$',Business_add,name='Business_add'),
    url(r'Business/del/(\d+)$',Business_del,name='Business_del'),
    url(r'Business/edit/(\d+)$',Business_edit,name='Business_edit'),
    #
    # url(r'graph/idcservers/$',graphidcservers,name='graphidcservers')
    # url(r'graph/statusservers/$',statusservers,name='statusservers')

]

